import express from 'express'
import router from './routes/index.js'
const app = express()
const port = 3000
app.use('/',async (req,res,next) => {
    console.log(req.url)
    next()
    console.log(req.url,'finished!!')
})
app.use('/', router)

app.listen(port, () => {
    console.log(`Example app listening on port ${port}`)
})